package com.hui.socket;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 测试webSocket
 * Created by LiaoYunHui on 2017/9/29/029.
 */
@Api(tags = "web_socket测试")
@Controller
public class WebSocketController {

    @ApiOperation("测试web_socket页面")
    @GetMapping("test_web_socket")
    public String testWebSocket() {
        return "socket";
    }


    @ApiOperation("登录页面")
    @GetMapping("login_page")
    public String loginPage() {
        return "login";
    }

    @ApiOperation("登录验证")
    @GetMapping("login")
    public String login() {
        return "chat";
    }



    @ApiOperation("test_chat页面")
    @GetMapping("test_chat")
    public String chatTest() {
        return "chat";
    }
}
